require 'scanner/states/state'
require 'scanner/states/start_state'
require 'scanner/states/comment_line_state'
require 'scanner/states/comment_block_state'

class SlashState < State
  @token_type = :Operator

  def self.next_state(char)
    next_state = case char
      when '/': CommentLineState
      when '*': CommentBlockState
      else StartState
    end
    return next_state
  end
end